/**
 * 
 */
package com.glodon.paas.account.api.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.Set;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author hankl
 *
 */
@XmlRootElement(name = "oAuth2Token")
public class OAuth2Token {
	private String value;
	private Set<String> scope;
	private Map<String, Object> additionalInfo;
	private String tokenType;
	private Date expiration;
	private String consumerId; //	
	private String expir; //formated time
	
	public String getExpir() {
		SimpleDateFormat dateformat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss E");
		
		return dateformat.format(this.getExpiration());		
	}
	public void setExpir(String expir) {
		this.expir = expir;
	}
	public String getConsumerId() {
		return consumerId;
	}
	public void setConsumerId(String consumerId) {
		this.consumerId = consumerId;
	}
	public Set<String> getScope() {
		return scope;
	}
	public void setScope(Set<String> scope) {
		this.scope = scope;
	}
	public Map<String, Object> getAdditionalInfo() {
		return additionalInfo;
	}
	public void setAdditionalInfo(Map<String, Object> additionalInfo) {
		this.additionalInfo = additionalInfo;
	}
	public String getTokenType() {
		return tokenType;
	}
	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}
	public Date getExpiration() {
		return this.expiration;
	}
	public void setExpiration(Date expiration) {
		this.expiration = expiration;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	

	
}
